xen/arm: p2m: Introduce p2m_get_root_pointer and use it in __p2m_lookup
authorJulien Grall <julien.grall@arm.com>
Thu, 15 Sep 2016 11:28:27 +0000 (12:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Sep 2016 01:13:58 +0000 (18:13 -0700)
commit588d44e6277958540b3075331a03d5bf1cd4ad91
tree82b18009195ad1ee50fad7b7194257086735bd27
parent31b2e5cfd596307aa1c037532d2beeeb66017910
xen/arm: p2m: Introduce p2m_get_root_pointer and use it in __p2m_lookup

Mapping the root table is always done the same way. To avoid duplicating
the code in a later patch, move the code in a separate helper.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/arm/p2m.c
xen/include/asm-arm/page.h